package com.ys.controller.web.demo;

import java.util.Date;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import com.ys.entity.hr.ThrOperateCompanyApply;
import com.ys.entity.shiro.LoginUser;
import com.ys.util.shiro.ShiroUtils;
import com.ys.util.BidUtil;
import com.ys.util.DateUtil;

@Controller
@RequestMapping("/web/demo")
public class WebDemoController {
	
	/*
	 * 首页
	 */
	@GetMapping("/index")
	public String index(Model model, HttpServletRequest request, HttpServletResponse response){

        return "sys/common2/index";
	}
	
	/*
	 * 表单页
	 */
	@GetMapping("/form")
	public String form(Model model, HttpServletRequest request, HttpServletResponse response){

        return "sys/common2/form2";
	}
	
	/*
	 * 树页
	 */
	@GetMapping("/tree")
	public String tree(Model model, HttpServletRequest request, HttpServletResponse response){

        return "sys/common2/tree";
	}
	
	/*
	 * 仪表盘
	 */
	@GetMapping("/dashboard")
	public String dashboard(Model model, HttpServletRequest request, HttpServletResponse response){

        return "sys/common2/dashboard";
	}
	
	/*
	 * 列表页
	 */
	@GetMapping("/list")
	public String list(Model model, HttpServletRequest request, HttpServletResponse response){

        return "sys/common2/templet_list2";
	}
}